/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.wiai.untl.core.entity;

import java.io.Serializable;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.ManyToOne;

/**
 *
 * @author Hendro Steven
 */
@Entity
public class Dosen implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;
    private String kodeDosen;
    private String namaDepan;
    private String namaBelakang;
    private String alamat;
    @ManyToOne
    private Departemen departemen;
    @ManyToOne
    private UserAccount account;
    
    

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    
    @Override
    public String toString() {
        return "("+this.kodeDosen+") "+this.namaDepan+" "+this.namaBelakang;
    }

    /**
     * @return the kodeDosen
     */
    public String getKodeDosen() {
        return kodeDosen;
    }

    /**
     * @param kodeDosen the kodeDosen to set
     */
    public void setKodeDosen(String kodeDosen) {
        this.kodeDosen = kodeDosen;
    }

    /**
     * @return the namaDepan
     */
    public String getNamaDepan() {
        return namaDepan;
    }

    /**
     * @param namaDepan the namaDepan to set
     */
    public void setNamaDepan(String namaDepan) {
        this.namaDepan = namaDepan;
    }

    /**
     * @return the namaBelakang
     */
    public String getNamaBelakang() {
        return namaBelakang;
    }

    /**
     * @param namaBelakang the namaBelakang to set
     */
    public void setNamaBelakang(String namaBelakang) {
        this.namaBelakang = namaBelakang;
    }

    /**
     * @return the alamat
     */
    public String getAlamat() {
        return alamat;
    }

    /**
     * @param alamat the alamat to set
     */
    public void setAlamat(String alamat) {
        this.alamat = alamat;
    }

    /**
     * @return the departemen
     */
    public Departemen getDepartemen() {
        return departemen;
    }

    /**
     * @param departemen the departemen to set
     */
    public void setDepartemen(Departemen departemen) {
        this.departemen = departemen;
    }

    /**
     * @return the account
     */
    public UserAccount getAccount() {
        return account;
    }

    /**
     * @param account the account to set
     */
    public void setAccount(UserAccount account) {
        this.account = account;
    }
    
}
